﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;
using AR.Web.Services;
using AR.Entities;
using System.Windows.Markup;
using AR.ViewModels;
using System.ServiceModel.DomainServices.Client;
using System.Windows.Data;
using System.Collections.ObjectModel;
using System.Windows.Browser;
using GalaSoft.MvvmLight.Messaging;

namespace AR
{
    public partial class EntretienTechnique : Page
    {
        // EntitySet<THEME> themes;
        TreeView treeview;
        HierarchicalDataTemplate choixtemplate;
        EntretienTechniqueFormViewModel viewModel;
        String CodeTestCandidat ="";

        public static int idcandidat { get; set; }
        public EntretienTechnique()
        {
            InitializeComponent();
            Loaded += EntretienTechnique_Loaded;
            
        }

        public EntretienTechnique(string codetest)
        {
            InitializeComponent();
            Loaded += EntretienTechnique_Loaded;
            CodeTestCandidat = codetest;
        }
        void EntretienTechnique_Loaded(object sender, RoutedEventArgs e)
        {
            string codetest = NavigationContext.QueryString["id"].ToString();
            if (codetest != null)
                this.DataContext = new EntretienTechniqueFormViewModel(codetest, Application.Current.Host.Content);            
        }
      
    }
}

